package com.ocm.tourism.dialect;

import java.sql.Types;

import org.hibernate.dialect.SQLServer2005Dialect;

public class UnicodeSQLServer2005Dialect extends SQLServer2005Dialect {
   private static final int MAX_LENGTH = 8000;

   public UnicodeSQLServer2005Dialect() {
      super();
      registerColumnType( Types.CLOB, "nvarchar(MAX)" );
      registerColumnType( Types.LONGVARCHAR, "nvarchar(MAX)" );
      registerColumnType( Types.VARCHAR, "nvarchar(MAX)" );
      registerColumnType( Types.VARCHAR, MAX_LENGTH, "nvarchar($l)" );
   }

}
